package com.ftf.tp.blog.infrastructure.converter;

import com.ftf.tp.blog.domain.configuration.aggregate.QuestionAgg;
import com.ftf.tp.blog.domain.configuration.dos.QuestionDO;
import com.ftf.tp.blog.infrastructure.mapper.pos.QuestionPO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author tanghao
 * @date 2022/8/11
 */
@Mapper
public interface QuestionConvert {
    QuestionConvert INSTANCE = Mappers.getMapper(QuestionConvert.class);


    QuestionPO toPo(QuestionAgg questionAgg);

    List<QuestionDO> toDOList(List<QuestionPO> questionPoList);
}
